<?php echo $this->Html->css('Seat.default')?>
<div class="location">当前位置：
		<?php echo $this->Html->link('首页',citylink('Index','index',false,false)); ?> &gt; 
		<?php echo $this->Html->link($ticket['TicketCate']['title_zh'],citylink('Tickets','index',false,false)+array('cate'=>$ticket['TicketCate']['id']))?> &gt; 
		<?php 
			if($ticket['TicketScate']['id']){
				echo $this->Html->link($ticket['TicketScate']['title_zh'],citylink('Tickets','index',false,false)+array(
						'cate'=>$ticket['TicketCate']['id'],'scate'=>$ticket['TicketScate']['id'])).'&gt;';
			}
		?>
		<span><?php echo $ticket['Ticket']['title']?></span>
	</div>
<div class="content main">
	<div class="neirong Box">
		<div class="msg_sub"><?php echo $ticket['Ticket']['title']?> 
			<?php echo date('Y年m月d日 h:i',strtotime($seatTicketShowing['TicketShowing']['showtime']))?>
		</div>
        <div id = 'seat_windows' 
        	data-id = '<?php echo $seatTicketShowing['TicketShowing']['id'] ?>'
        	data-ticket_id = '<?php echo $ticket['Ticket']['id'] ?>'
        	data-seat_ticket_id = '<?php echo $seatTicket['SeatTicket']['id'] ?>'>
        	<div id = 'loading'>
        		<?php echo $this->Html->image('Seat.loading.gif')?>
        		<p>加载中</p>
        	</div>
        	<div id = 'overlay'></div>
        	<div id= 'seat_bar'>
        		
        		<div class = 'seat_table'>
        			<ul>
        			<?php foreach ($seatTicket['ModelX']['ModelTable'] as $table):?>
        			<li>
        				<a data-id = '<?php echo $table['id']?>' class = 'seat_table_hander' href = 'javascript:;'>
        					<?php echo $table['name']?>
        				</a>
        			</li>
        			<?php endforeach;?>
        			</ul>
        		</div>
        		<div class = 'seat_type'>
        			<ul>
        			<?php foreach ($seatTicket['SeatType'] as $seatType):?>
        			<li>
       					<?php echo $this->Html->image('Seat.seat/'.$seatType['add_class'].'.jpg')?>
        				<a data-id = '<?php echo $seatType['id']?>' 
        					class = '<?php echo $seatType['add_class']?>'
        				>
	        				<?php echo $seatType['name']?>&nbsp;&nbsp;&nbsp;&nbsp;￥<?php echo $seatType['price']?>
        				</a>
        			</li>
        			<?php endforeach;?>
        			</ul>
        		</div>
        		<div class = 'seat_icon'>
        			<ul>
        				<li>
	       					<?php echo $this->Html->image('Seat.seat/disabled.jpg')?>已售
	        			</li>
	        			<li>
	       					<?php echo $this->Html->image('Seat.seat/locked.jpg')?>锁定
	        			</li>
	        			<li>
	       					<?php echo $this->Html->image('Seat.seat/incart.jpg')?>已选
	        			</li>
        			</ul>
        		</div>
        	</div>
        	<div id = 'seat_show'>
	        	<div id = 'seat_checkout'>
	        		<div class = 'cart_header'>
	        			已选座位<span id = 'cart_count_'>0</span>
	        		</div>
	        		<div id = 'zoom_bar'>
	        			<a href = 'javascript:;' class = 'zoom_in'></a>
	        			<a href = 'javascript:;' class = 'zoom_out'></a>
	        		</div>
	        		<div class = 'cart_list'>
	        			<table id = 'cart_tickets'>
	        				<thead>
	        					<tr>
		        					<th>座号</th>
		        					<th>类别</th>
		        					<th>票价</th>
		        					<th>操作</th>
	        					</tr>
	        				</thead>
	        				<tbody></tbody>
	        			</table>
	        		</div>
	        		<div class = 'cart_checkout'>
	        			<a href = 'javascript:;' id = 'cart_submit' class = 'btn'>结算（<span id = 'cart_total'>0</span>）</a>
	        		</div>
	        	</div>
	        	<div id = 'seat_area'>
		        	<div id = 'seat_map_container'></div>
	        	</div>
        	</div>
        </div>
    </div>
</div>
<?php echo $this->Html->script('Seat.xseat')?>
<script type="text/javascript">
<!--
$(function(){
	xseat.f.init(22);
});
//-->
</script>
